

public class HelloWorld{
    public static void main(String argv[]){
        HelloWorld t=new HelloWorld( );
        t.first( );
    }

    class Value{
    	public int i=15;
    }

public void first( ){
    int i=5;
    Value v=new Value( );
    v.i=25;
    Value v1=new Value( );
    v = v1;
    second(v,i);
    System.out.println(v.i);
}


public void second(Value a,int i){
    i = 0;
    Value val = new Value( );
    a.i = 18;
    a = val;
    System.out.println(a.i+" "+i);
   }
}

